package com.neuedu.utilityTest;

public class StudentTest {
    public static void main(String[] args) {
        //创建第一个学生对象
        Student stu1=new Student("123456","张三");
        //创建第二个学生对象
        Student stu2=new Student("123456","张三");
        //调用重写后的equals方法判断两个学生对象是否为同一名学生并创建变量接收
        boolean result = stu2.equals(stu1);
        //打印结果
        System.out.println(result);
    }
}
